<?php

class Core_AdminAclController extends Zend_Controller_Action
{
	public function init()
	{
		$result = Nuo::getApi('Acl') -> allow('core.admin.access');
	}

	public function indexAction()
	{
		/**
		 * @var Core_Model_Db_Table_Actions
		 */
		$table = new Core_Model_DbTable_Actions;

		/**
		 * init select
		 */
		$select = $table -> select();
		
		/**
		 * Zend_Paginator
		 * @var $pag
		 */
		$this -> view -> paginator = $pag  = Zend_Paginator::factory($select);
		
		/**
		 * set current page number
		 */
		$pag -> setCurrentPageNumber($this -> _getParam('page', 1));

	}

	public function editAction()
	{
		$table = new Core_Model_DbTable_Actions;

		$row = $table -> find($this -> _getParam('action_id', 0)) -> current();

	}

}
